package com.example.cardemo.utils

import com.example.cardemo.bean.BrandBean
import com.example.cardemo.bean.BrandlistBean
import com.example.cardemo.bean.ModellistBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface CarApi {
    companion object{
        val key ="745bf68a9dc1196d301309459c4d1632"
        val base_url = "http://apis.juhe.cn/cxdq/"
    }

    @GET("brand")
    open fun getCarBrand(@Query("key") key: String,
                         @Query("first_letter") first_letter: String): Call<BrandBean>?

    @GET("series")
    open fun getBrandlist(@Query("key") key: String,
                         @Query("brandid") brandid: String): Call<BrandlistBean>?

    @GET("models")
    open fun getModellist(@Query("key") key: String,
                         @Query("series_id") series_id: String): Call<ModellistBean>?
}